#include <stdio.h>

//int main(void)
//{
//    int hoge = 5;
//    int piyo = 10;
//    int *hoge_p;
//
//    /* 输出每个变量的地址 */
//    printf("&hoge..%p\n", &hoge);
//    printf("&piyo..%p\n", &piyo);
//    printf("&hoge_p..%p\n", &hoge_p);
//
//    /* 将hpge 的地址赋予hoge_p */
//    hoge_p = &hoge;
//    printf("hoge_p..%p\n", hoge_p);
//
//    /* 通过hope_p 输出hoge的内容 */
//    printf("*hoge_p..%d\n", hoge_p);
//
//    /* 通过hoge_p 修改hoge的内容 */
//    *hoge_p = 10;
//    printf("hoge..%d\n", hoge);
//
//    return 0;
//}

int main(void)
{
    int hoge;
    int *hoge_p;

    printf("hoge..%p\n", &hoge);
    hoge_p = &hoge;
    printf("hoge_p..%p\n", hoge_p);
    hoge_p++;
    printf("hoge_p..%p\n", hoge_p);
    printf("hoge_p..%p\n", hoge_p + 3);

    return 0;
}